<?php /* Smarty version 2.6.18, created on 2009-03-09 23:59:25
         compiled from set_word_category.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'set_word_category.html', 20, false),array('function', 'webcontrol', 'set_word_category.html', 33, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>视听词典</title>
<link href="templates/css/picandtext.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="templates/js/jquery.js"></script>
<style type="text/css">
    td.row{
        width:80px;
    }
    #topNavBar{
        margin-bottom:30px;
    }
</style>
<script type="text/javascript">
$(function(){
});
function get_explain(word,no,obj){
      $.getJSON("<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'study','action' => 'explain'), $this);?>
",
        {word:word,no:no},
        function(data){
        obj.replaceWith("<p>"+data.pic_text+"</p><p>"+data.pic_text_zh+"</p>");
        }); 
}
function clickall(){
    $(":button").click();
}
</script>
</head>
<body>
    <div id="content">
        <?php echo $this->_plugins['function']['webcontrol'][0][0]->_pi_func_webcontrol(array('type' => 'menu','name' => 'mymenu'), $this);?>

        <div>当前所在的分类:<?php echo $this->_tpl_vars['selected_category']; ?>
</div>
        <form id="form_select_category" method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'word','action' => 'setcategory'), $this);?>
">
            <p>
            <select name="category">
                <?php $_from = $this->_tpl_vars['data_select_category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
                <optgroup label="<?php echo $this->_tpl_vars['key']; ?>
">
                    <?php $_from = $this->_tpl_vars['item']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['i']):
?>
                    <option value="<?php echo $this->_tpl_vars['i']; ?>
"><?php echo $this->_tpl_vars['k']; ?>
</option>
                    <?php endforeach; endif; unset($_from); ?>
                </optgroup>
                <?php endforeach; endif; unset($_from); ?>
            </select>
            </p>
        <input type="reset" value="重置">
        <input type="submit" value="提交">
        </form>
    </div>
</body>
</html>
